.excalidraw {
  --color-primary-contrast-offset: #625ee0; // to offset Chubb illusion

  &.theme--dark {
    --color-primary-contrast-offset: #726dff; // to offset Chubb illusion
  }

  .top-right-ui {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .footer-center {
    justify-content: flex-end;
    margin-top: auto;
    margin-bottom: auto;
    margin-inline-start: auto;
  }

  .encrypted-icon {
    border-radius: var(--space-factor);
    color: var(--color-primary);
    margin-top: auto;
    margin-bottom: auto;
    margin-inline-start: auto;
    margin-inline-end: 0.6em;
    z-index: var(--zIndex-layerUI);

    svg {
      width: 1.2rem;
      height: 1.2rem;
    }
  }

  .dropdown-menu-container {
    .dropdown-menu-item {
      &.active-collab {
        background-color: #ecfdf5;
        color: #064e3c;
      }

      &.highlighted {
        color: var(--color-promo);
        font-weight: 700;

        .dropdown-menu-item__icon g {
          stroke-width: 2;
        }
      }
    }
  }

  &.theme--dark {
    .dropdown-menu-item {
      &.active-collab {
        background-color: #064e3c;
        color: #ecfdf5;
      }
    }
  }

  .collab-offline-warning {
    pointer-events: none;
    position: absolute;
    top: 6.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.5;
    border-radius: var(--border-radius-md);
    background-color: var(--color-warning);
    color: var(--color-text-warning);
    z-index: 6;
    white-space: pre;
  }
}

.excalidraw-app.is-collaborating {
  [data-testid="clear-canvas-button"] {
    display: none;
  }
}

.plus-button {
  display: flex;
  justify-content: center;
  cursor: pointer;
  align-items: center;
  border: 1px solid var(--color-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-lg);
  background-color: var(--island-bg-color);
  color: var(--color-primary) !important;
  text-decoration: none !important;

  font-size: 0.75rem;
  box-sizing: border-box;
  height: var(--lg-button-size);

  &:hover {
    background-color: var(--color-primary);
    color: white !important;
  }

  &:active {
    background-color: var(--color-primary-darker);
  }
}

.theme--dark {
  .plus-button {
    &:hover {
      color: black !important;
    }
  }
}



// 柳哥哥样式
.App-menu__left {
  left: calc(100vw - 230px);
}

.left_menu_div {
  position: absolute;
  top: 145px;
  border: none;
  box-shadow: 0 0 0 1px var(--color-surface-lowest);
  background-color: var(--color-surface-low);
  width: 229px;
  height: calc(100vh - 230px);
  left: 0px;
  border-radius: 8px;
  z-index: 2;

  .masker {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 4;
    background-color: var(--color-surface-low);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;

    .masker-loading-div {
      text-align: center;

      .masker-loading {
        width: 60px;
      }

      .loading-txt {
        font-size: 13px;
        opacity: 0.5;
      }
    }
  }

  .head-div {
    padding: 10px 25px;
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #80808029;

    .clear {
      width: 75px;
      height: 24px;
      line-height: 25px;
      background-color: var(--default-bg-color);
      border-radius: 5px;
      cursor: pointer;
      box-shadow: 1px 1px 10px var(--button-gray-3);
      font-size: 13px;
      text-align: center;
    }

    .clear2 {
      width: 75px;
      height: 24px;
      line-height: 25px;
      background-color: var(--default-bg-color);
      border-radius: 5px;
      cursor: pointer;
      box-shadow: 1px 1px 10px var(--button-gray-3);
      font-size: 13px;
      text-align: center;
    }
  }

  .kejian-len {
    opacity: 0.3;
    position: absolute;
    margin-top: -30px;
    left: 203px;
    font-size: 11px;
  }

  .upClassFile {
    text-align: center;
    height: 50px;
    line-height: 50px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    .uptxt {
      width: 88px;
      height: 30px;
      line-height: 31px;
      background-color: var(--default-bg-color);
      border-radius: 5px;
      cursor: pointer;
      box-shadow: 1px 1px 10px var(--button-gray-3);
      font-size: 13px;

      .filetypetxt {
        position: absolute;
        margin-left: -60px;
        font-size: 13px;
        opacity: 0.25;
        width: 210px;
      }
    }
  }

  .nullclass {
    margin-top: calc(50vh - 250px);
  }

  .nodata {
    text-align: center;

    .nodata-img {
      width: 100px;
      height: 100px;
    }

    .nodata-text {
      font-size: 13px;
    }
  }

  .loading-spinner {
    text-align: center;
    height: 50vh;
    line-height: 50vh;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;

    .loadingtxt {
      width: 120px;
      height: 30px;
      line-height: 31px;
      background-color: var(--default-bg-color);
      border-radius: 5px;
      box-shadow: 1px 1px 10px var(--button-gray-3);
      font-size: 13px;
    }
  }

  .kjlist {
    height: calc(100% - 65px);
    overflow-y: scroll;
    padding: 10px;

    .kjitem {
      height: 130px;
      width: 100%;
      display: flex;
      align-items: start;
      cursor: pointer;

      .kjindex {
        height: 30px;
        width: 20px;
        position: relative;
        left: -5px;
        text-align: right;
        font-size: 13px;

        .del {
          margin-top: 30px;

          svg {
            width: 20px;
            height: 20px;
            color: var(--button-gray-2);
            position: relative;
            left: 3px;
            display: none;
          }
        }
      }

      .kjimage {
        width: 178px;
        height: 110px;
        border: 4px solid rgb(159 159 159 / 8%);
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;

        .kjimg {
          height: 100%;
          max-width: 100%;
        }

        .loadingpic {
          width: 60px !important;
        }
      }

      .kjimage.active {
        border: 4px solid rgb(216, 51, 68) !important;
      }
    }


    .kjitem:hover {
      .kjimage {
        border: 4px solid #c9c9c9;

        .kjimg {}
      }

      .kjindex {
        .del {
          svg {
            display: block;
          }
        }
      }
    }

    .kjitem.active {
      .kjimage {
        border: 4px solid rgb(216, 51, 68) !important;
      }

      .kjindex {
        .del {
          svg {
            display: none !important;
          }
        }
      }
    }
  }

  .upClassFile {
    .uploading-div {
      .loadingimage {
        width: 68px;
      }
    }
  }
}

.right_bottom_pannel {
  display: flex;
  justify-items: center;
  justify-content: center;

  .fullscreen_btn {
    cursor: pointer;
    position: relative;
    top: 3px;
  }
}

.bigmasker-div {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0px;
  left: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;

  .bigmasker {
    position: absolute;
    width: 100vw;
    height: 100vh;
    filter: blur(1px);
    backdrop-filter: blur(20px);
  }

  .masker-loading-div {
    text-align: center;
    z-index: 11;

    .masker-loading {
      width: 90px;
    }

    .loading-txt {}
  }
}